FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. Tags
    3. social logins
    Log in to post
    • All categories
    • danD

      Solved Can I offer "login with yahoo" using FusionAuth?

      Q&A
      • yahoo login federation social logins • • dan
      2
      0
      Votes
      2
      Posts
      36
      Views

      danD

      Yes. You can use FusionAuth's OpenID Connect Identity Provider.

      I did this a few weeks ago, so am writing these instructions from memory.

      Prerequisites:

      A yahoo account A running FusionAuth instance (localhost is fine)

      Steps:

      Go to the Yahoo! developer network and create an app. The redirect URI for Yahoo is https://<your instance>/oauth2/callback Save off the provided Client ID (Consumer Key) and Client Secret (Consumer Secret). Then go to FusionAuth and create an OpenID Connect Identity Provider: <your instance>/admin/identity-provider/add/OpenIDConnect Put the Client ID (Consumer Key) and Client Secret (Consumer Secret) into the Client Id and Client secret fields, respectively. Uncheck Discover Endpoints. Manually configure the endpoints: Set the Authorization Endpoint to https://api.login.yahoo.com/oauth2/request_auth Set the Token Endpoint to https://api.login.yahoo.com/oauth2/get_token Set the Userinfo Endpoint to https://api.login.yahoo.com/openid/v1/userinfo Set the Scope to openid email profile and any other scopes you might need. (I was unable to find an authoritative list, but here's info about the mail scopes.) Update the Button text and Button image as needed. Enable it for applications as needed. Save the Identity Provider.
    • danD

      Can I allow a user to add their existing social login account to their existing FusionAuth account?

      Q&A
      • social logins user accounts • • dan
      2
      0
      Votes
      2
      Posts
      734
      Views

      danD

      In 1.28.0, FusionAuth introduced a linking strategy and a first class 'link' object. This is part of the community/free edition.

      This is how I'd approach that. You'd have to get the user to login via their social account and get their unique user Id (for, say, Google). This could be done via a page in your application.

      Then you'd take that Google user Id and create a link using the APIs: https://fusionauth.io/docs/v1/tech/apis/identity-providers/links/

      Here's more on this: https://fusionauth.io/docs/v1/tech/identity-providers/#linking-strategies

      After the link is created, the next time the user went to login, they could use either their old email/password creds or the linked social login.

    • danD

      Same email address across social providers

      Q&A
      • social logins users login email • • dan
      2
      0
      Votes
      2
      Posts
      3.7k
      Views

      danD

      Each user is unique within a tenant by email address. If a user in the same tenant wants to login with Facebook, Google, or LinkedIn, it will be the same User object.

    • danD

      Metrics for user authentication?

      Q&A
      • social logins metrics login • • dan
      2
      0
      Votes
      2
      Posts
      936
      Views

      danD

      We don’t currently have any internal reporting for that metric.

      The best way to do this currently would be to listen to the user.login.success event.

      This event will contain what IdP was used and more info. You can then push that to whatever analytics storage layer (database, s3, etc) you'd like.

      More here: https://fusionauth.io/docs/v1/tech/events-webhooks/events#user-login-success